
public class Fish implements Comparable<Fish>{
	private int weight;
	private String type;
	
	public Fish(String inType, int inWeight) {
		weight = inWeight;
		type = inType;
	}
	
	public String getType() {
		return type;
	}
	
	public int getWeight() {
		return weight;
	}
	
	public int compareTo(Fish other) {
		int difference = weight - other.weight;
		return difference;
	}
}
